﻿namespace dot_in.HTWKAidStation.Client.Timetable
{
    using System.Collections.Generic;
    using System.Collections.ObjectModel;

    public class Course
    {
        public Course()
            : this(string.Empty, new ObservableCollection<TutorialGroup>())
        {
        }

        public Course(string name)
            : this(name, new List<TutorialGroup>())
        {
        }

        public Course(string name, IEnumerable<TutorialGroup> tutorialGroups)
        {
            this.Name = name;
            this.TutorialGroups = new ObservableCollection<TutorialGroup>(tutorialGroups);
        }

        public string Name { get; set; }

        public ObservableCollection<TutorialGroup> TutorialGroups { get; set; }


        public override string ToString()
        {
            return this.Name;
        }
    }
}
